/**
 * Copyright (c) 2009 Cerner Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Cerner Corporation - initial API and implementation
 */
package com.cerner.system.rest.jaas.cas;

/**
 * Internal contingency exception that identifies alternative execution paths
 * that must be taken into consideration when invoking operations of the
 * HTTP-transport layer. This checked exception is useful for the propagation of
 * internal errors that happen on the server-side.
 * 
 * @author Alex Horn
 * @since 1.0.0
 */
class CasConnectorException extends Exception {

  CasConnectorException(String message) {
    super(message);
  }

  CasConnectorException(String username, org.restlet.data.Status status) {
    super("Cannot login user '".concat(username).concat(
        "'. CAS responded with ".concat(status.toString())));
  }

  private static final long serialVersionUID = 0;

}
